<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/app.tld" prefix="app" %>

<tiles:importAttribute name="error" ignore="true"/>
<html:form action="/saveUser.do">
<html:hidden property="id"/>


       <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td class="table_bg"> 
              <table  cellspacing="1"   bordercolordark="#ffffff" cellpadding="0" width="100%" border="0">
                <tr align="center" class="tb"> 
                   <td height="23"  colspan="2" class="table_header">
                     <logic:notPresent parameter="id">
                       <bean:message key="label.ums.createUser"/>
                     </logic:notPresent>
                     <logic:present parameter="id">
                       <bean:message key="label.ums.editUser" />
                     </logic:present>
                     </td>
                </tr>
                 <tr> 
                  <td height="27" class="table_title" >
                    <bean:message key="label.ums.user.account" />&nbsp;
                  </td>
                  <td class="table_content"  >&nbsp; 
                    <html:text property="account" size="20" maxlength="20" onchange="isInputBlank(this)" styleClass="input"/>
                  </td>
                </tr>              
                <tr> 
                  <td height="27" class="table_title" >
                    <bean:message key="label.ums.user.password" />&nbsp;
                  </td>
                  <td class="table_content" >&nbsp; 
                    <html:password property="password" size="20" maxlength="20" onchange="isInputBlank(this)" styleClass="input"/>
                  </td>
                </tr>
               
                <tr> 
                  <td height="27" class="table_title" >
                    <bean:message key="label.ums.user.name" />&nbsp;
                  </td>
                  <td class="table_content" >&nbsp; 
                    <html:text property="name" size="25" maxlength="25"   styleClass="input"/>
                  </td>
                </tr> 

                <tr> 
                  <td height="27" class="table_title" >
                    <bean:message key="label.ums.group.name" />&nbsp;
                  </td>
                  <td class="table_content" >&nbsp; 
                	   <html:select property="groupId" styleClass="input">		   					
						  <html:options collection="groups" property="id" labelProperty="name" />
					   </html:select>
                  </td>
                </tr> 
				<tr align="center"> 
                  <td colspan="2" height="23" class="table_content" >
                      <html:submit property="submitButton" styleClass="button" >
                         <bean:message key="button.submit" bundle="common"/>
                      </html:submit>
                      &nbsp;&nbsp;&nbsp;&nbsp;
                        <html:button property="golist" styleClass="button" onclick="goBack();">
						  <bean:message key="button.back" bundle="common"/>
					   </html:button>                      
                  </td>
                </tr>
              </table>
            </td>
          </tr>
       </table>

</html:form>
<script language="Javascript1.1">
function goBack(){
          window.location="<%= request.getContextPath()%>/ums/listUser.do";
     }
</script>
